package com.shenyi.shop.service;

import com.shenyi.shop.api.ICommentPictureService;
import com.shenyi.shop.dao.CommentPictureMapper;
import com.shenyi.shop.entity.CommentPictureDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/05
 * @desc
 * @see
 * @since 1.0
 */
@Service
public class CommentPictureServiceImpl implements ICommentPictureService {

    @Autowired
    private CommentPictureMapper commentPictureMapper;

    @Override
    public CommentPictureDO queryObject(Integer id) {
        return commentPictureMapper.queryObject(id);
    }

    @Override
    public List<CommentPictureDO> queryList(Map<String, Object> map) {
        return commentPictureMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return commentPictureMapper.queryTotal(map);
    }

    @Override
    public int save(CommentPictureDO commentPicture) {
        return commentPictureMapper.save(commentPicture);
    }

    @Override
    public int update(CommentPictureDO commentPicture) {
        return commentPictureMapper.update(commentPicture);
    }

    @Override
    public int delete(Integer id) {
        return commentPictureMapper.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return commentPictureMapper.deleteBatch(ids);
    }

    @Override
    public int deleteByCommentId(Integer commentId) {
        return commentPictureMapper.deleteByCommentId(commentId);
    }
}
